home *** CD-ROM | disk | FTP | other *** search
- @echo off
- del cxf.exe
- if "%1" == "tc" goto :TC
- if "%1" == "bc" goto :BC
- if "%1" == "bcwin" goto :BCWIN
- if "%1" == "bcdll" goto :BCDLL
- if "%1" == "mc" goto :MC
- if "%1" == "zc" goto :ZC
- if "%1" == "pc" goto :PC
- if "%1" == "tp" goto :TP
-
- :usage
- echo ------------------------------------------------------------------
- echo This batch file creates cxf.exe for a several different compilers
- echo and evironments. Run this batch file again after choosing a
- echo compiler from the list below.
- echo ------------------------------------------------------------------
- echo makecxf bc - Borland C/C++ MS-DOS - using CX.OBJ
- echo makecxf mc - Microsoft C MS-DOS - using CX.OBJ
- echo makecxf zc - Zortech C/C++ MS-DOS - using CX.OBJ
- echo makecxf pc - Power C (2.0) MS-DOS - using CX.MIX
- echo makecxf tp - Turbo Pascal MS-DOS - using CX.TPU
- echo makecxf bcwin - Borland C/C++ Windows - using CX.OBJ
- echo makecxf bcdll - Borland C/C++ Windows - using CXWIN.DLL
- echo ------------------------------------------------------------------
- echo When using a C compiler, you will probably need to alter this
- echo batch file to inform the compiler where the header and library
- echo files may be found. When using a DLL, you may need to copy
- echo CXWIN.DLL to a directory where Windows searches for DLL's.
- echo ------------------------------------------------------------------
- goto :end
-
-
- :BC
- bcc -ml -Id:\tc\include -Ld:\tc\lib cxf.c cx.obj
- goto :end
-
- :BCWIN
- bcc -ml -WS -Id:\tc\include -Ld:\tc\lib cxf.c cx.obj winio.obj
- d:\tc\rc cxf.exe
- goto :end
-
- :BCDLL
- bcc -ml -WS -Id:\tc\include -Ld:\tc\lib cxf.c cxwin.lib winio.obj
- d:\tc\rc cxf.exe
- goto :end
-
- :MC
- cl -c -AL -Id:\mc\inc cxf.c
- link /NOD cxf cx,,,d:\mc\lib\llibce;
- goto :end
-
- :ZC
- ztc -c -ml -Ic:\zc cxf
- blink cxf cx,,,c:\zc\zll
- goto :end
-
- :PC
- del cxf.mix
- pc -ml cxf
- pcl cxf cx
- goto :end
-
- :TP
- tpc cxf
- goto :end
-
-
- :end
-